package com.hqd.ch03.v50.beans.factory.config;

import com.hqd.ch03.v50.beans.factory.NamedBean;

public class NamedBeanHolder<T> implements NamedBean {

    private final String beanName;

    private final T beanInstance;

    public NamedBeanHolder(String beanName, T beanInstance) {
        this.beanName = beanName;
        this.beanInstance = beanInstance;
    }


    @Override
    public String getBeanName() {
        return this.beanName;
    }

    public T getBeanInstance() {
        return this.beanInstance;
    }

}
